<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .hidden {
      border: solid 1px #ccc;

      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
  </style>
</head>

<body>
  <div class="hidden">
    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ea dolorem maxime recusandae porro praesentium totam a
    necessitatibus possimus accusantium magni dignissimos culpa consectetur optio doloribus quia, odit, asperiores autem
    veritatis?
  </div>
</body>

</html>